﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dracham.Classes
{
    /// <summary>
    /// An enumeration containing the different MessageTypes used for communication with the server.
    /// Note: MessageTypes starting with a capitalized c are used for ConsoleCommands.
    /// </summary>
    public enum MessageType : int
    {
        Unknown = 0,

        #region GameCommands

        //
        // Login Related
        //
        LoginRequest =              1,
        LoginSuccess =              2,
        LoginFailure =              3,
        LogoutRequest =             4,
        CharacterList =             5,
        FullCharacterData =         6,
        PartialCharacterData =      7,
        
        //
        // Movement / Fight Related
        //
        MobMovement =               10,
        CharacterMovement =         11,
        MobDeath =                  13,

        //
        // Messages
        //
        ChatMessage =               20,
        CombatMessage =             21,
        SystemMessage =             22,

        //
        // Attacks
        //
        AttackRequest =             30,


        //
        // Quest / Chat Related
        //
        QuestData =                 50,

        #endregion

        #region ConsoleCommands

        //
        // ServerObjects
        //
        CXmlData =              94,
        CXmlDataLength =        95,
        CXmlDataRequest =       96,

        //
        // Console Login
        //
        CLoginRequest =         97,
        CLoginSuccess =         98,
        CLoginFailure =         99

        #endregion
    }
}
